undo

public static EditorCommand undo()

Returns a command that allows reversing the last action.